﻿
<extend  name="./Application/Admin/View/layout.html" />
<block name="mid">
     <div id="page-wrapper">
            <div id="page-inner">
                <div class="row">

                    <div class="col-md-12">
                        <h1 class="page-head-line">Data Table </h1>
                        <h1 class="page-subhead-line">This is dummy text , you can replace it with your original text. </h1>

                    </div>
                </div>
                <!-- /. ROW  -->


<a class="btn btn-success" type="button" href="{:U('Admin/nav/add')}">添加</a>
                <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-12">
                     <!--    Hover Rows  -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                           导航列表
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-hover">

                                    <thead>
                                        <tr>
                                            <th>id</th>
                                            <th>用户名称</th>
                                            <th>头像</th>
                                            <th>性别</th>
                                            <th>电话</th>
                                             <th>操作</th>

                                        </tr>
                                    </thead>
                                    <tbody>
<!--
                                            <td>ssss</td>
                                            <td>ssss</td>


                                            <td>ssss</td>
                                            <td>ssss</td>
                                            <td>ssss</td> -->

                                  <foreach name="lists" item="v" >
                                        <tr>
                                            <td>{$v.id}</td>
                                            <td>{$v.username}</td>


                                            <td><img width="8%" height="8%" src="__ROOT__/{$v.avathor}"></td>
                                            <td>{$v.sex}</td>
                                            <td>{$v.tell}</td>
                                            <td><a class="btn btn-success" type="button" href="{:U('Admin/admin/adxit/id/'.$v['id'])}">编辑</a></td>




                                        </tr>

                                        </foreach>
                                    </tbody>
                                </table>
                                <ul class="pagination">
                                  <li class="disabled"><a href="#">«</a></li>
                                  <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
                                  <li><a href="#">2</a></li>
                                  <li><a href="#">3</a></li>
                                  <li><a href="#">4</a></li>
                                  <li><a href="#">5</a></li>
                                  <li><a href="#">»</a></li>


                               </ul>
{$page}
                            </div>
                        </div>
                    </div>
                    <!-- End  Hover Rows  -->
                </div>

            </div>
                <!-- /. ROW  -->

            </div>
            <!-- /. PAGE INNER  -->
        </div>
        </block>
